<?php //install Step 3 - Plugins
define('DB_DNC', true);
require_once('../inc/inc.common.php');

$tmpl 		= new mvTemplate();

// assign default values
$default_pluginhtml = mvSettings::get('pluginhtml', '1');
$default_pluginpdf 	= mvSettings::get('pluginpdf', '1');
$default_pluginrss 	= mvSettings::get('pluginrss', '1');
$default_prodlev 	= mvSettings::get('prodlev', '0');

// unless we've come from somewhere else
if(isset($_POST['submit'])){
	$default_kbname 	= $_POST['install_kbname'];
	$default_kburl 		= $_POST['install_kburl'];
	$default_kbhomeurl 	= $_POST['install_kbhomeurl'];

	mvSettings::set('kbname', $default_kbname);
	mvSettings::set('kburl', $default_kburl);
	mvSettings::set('kbhomeurl', $default_kbhomeurl);
	mvSettings::save(POMBY_DIR . '/config/config.php');
}

$tmpl->assign('default_pluginhtml'	, $default_pluginhtml);
$tmpl->assign('default_pluginpdf'	, $default_pluginpdf);
$tmpl->assign('default_pluginrss'	, $default_pluginrss);
$tmpl->assign('default_prodlev'		, $default_prodlev);

$tmpl->page_install('install_step3.tpl');

?>